package com.yjt.fresh.api;

import com.trello.rxlifecycle.components.support.RxAppCompatActivity;
import com.wzgiceman.rxretrofitlibrary.retrofit_rx.Api.BaseApi;
import com.wzgiceman.rxretrofitlibrary.retrofit_rx.listener.HttpOnNextListener;
import com.yjt.fresh.httpservice.HttpPostService;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * 登录请求接口
 * Created by gxcheng on 2018/1/13.
 */

public class LoginApi extends BaseApi {


    public LoginApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity, boolean showProgress, boolean cache,boolean cancel) {
        super(listener, rxAppCompatActivity, showProgress, cache,cancel);
        setShowProgress(true);
        setMethod("app/appuser/login");
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService service = retrofit.create(HttpPostService.class);
        return service.getAllVedioBys(true);
    }

    @Override
    public Object call(Object o) {
        return null;
    }
}
